<div class="respotbs twoColTab clearfix"
	style="display: block; width: 100%; margin: 0px;">
	<ul class="resp-tabs-list">
		<li class="resp-tab-item resp-tab-active" aria-controls="tab_item-0"
			role="tab">Company</li>
		<li class="resp-tab-item" aria-controls="tab_item-2" role="tab">Gallery</li>
		<li class="resp-tab-item" aria-controls="tab_item-3" role="tab">Send
			Enquiry</li>
	</ul>


	<div class="fixed-block-top clearfix">
		<div class="row">
			<div class="col-md-4 col-xs-4">
				<img class="img-responsive"
					src="<?= URL::base(); ?>/storage/uploads/logos/<?= $post->logo; ?>">
			</div>

			<div class="col-md-8 col-xs-8">
				<h1 class="col-md-12 text-danger">
					<?= $post->title; ?>
				</h1>
				<hr>

				<div class="row clearfix thin">
					<div class="col-md-7 col-xs-12">

						<h3>
							<?= ($post->address1 ? $post->address1 : null); ?>
						</h3>

						<p>
							<?= ($post->address2 ? ', ' . $post->address2 : null); ?>
						</p>

						<p>
							<?php foreach (Terms::location($post->id) as $loc): ?>
							<a href="#"><?= Locations::find($loc->value)->name; ?>, </a>
							<?php endforeach; ?>

							<?= Settings::get('en', 'default_location'); ?>
						</p>

						<p>
						
						
						<h2 class="margin-top">
							<?= $post->phone1; ?>
						</h2>
						</p>

						<p class="thin margin-top">
							<?php foreach (Terms::category($post->id) as $cat): ?>
							<a href="#" class="text-warning"><?= Categories::find($cat->value)->name; ?>,</a>
							<?php endforeach; ?>
						</p>


						<p class="margin-top">Are you Owner of the Business?</p>

						<p>
							<a href="#" class="btn btn-danger btn-xs" data-toggle="modal"
								data-target=".claimModal">Claim Now!</a>
						</p>


					</div>



					<div class="col-md-5 col-xs-12">

						<div class="row">
							<div class="col-md-6">
								<p>
									<?php if ($post->verified == '1'){ ?>
									<img class="img-responsive"
										src="<?= URL::base(); ?>/storage/uploads/checked.png">
								
								
								<div>Verified</div>
								<?php } ?>
								</p>
							</div>

							<div class="col-md-6">
								<p>
								
								
								<div class="ratting">


									<span class="thin"><?= ($post_ratting ? $post_ratting : '0'); ?>/</span>5
									<p class="text">Ratting</p>

								</div>
								</p>


							</div>
						</div>


					</div>
				</div>
			</div>
		</div>
	</div>


	<div class="resp-tabs-container">
		<h2 class="resp-accordion resp-tab-active" role="tab"
			aria-controls="tab_item-0">
			<span class="resp-arrow"></span>Company
		</h2>


		<div class="resp-tab-content resp-tab-content-active"
			aria-labelledby="tab_item-0" style="display: block">

			<div class="row">
				<div class="col-md-12">
					<?php if($post->description){?>
					<h3>
						<span class="thin text-danger">About</span> <strong><?= $post->title; ?>
						</strong>
					</h3>

					<p>
						<?= $post->description; ?>
					</p>
					<?php }?>
					<?php if($post->services){?>
					<h3>
						<span class="thin text-danger"> Product and Services of </span><strong><?= $post->title; ?>
						</strong>
					</h3>

					<p>
						<?= $post->services; ?>
					</p>
					<?php }?>
				</div>

			</div>
		</div>

		<h2 class="resp-accordion" role="tab" aria-controls="tab_item-2">
			<span class="resp-arrow"></span>Gallery
		</h2>

		<div class="resp-tab-content" aria-labelledby="tab_item-2">

			<div>
				<div class="row">
					<ul>
						<?php if ($videos) { ?>
						<?php foreach ($videos as $video): ?>
						<li class="col-md-3"><a id="mediaVideo" href="#"
							data-toggle="modal" data-target="<?='#'.$video->id; ?>"
							data-theVideo="//www.youtube.com/embed/<?= $video->value;?>"> <img
								src="http://img.youtube.com/vi/<?= $video->value;?>/0.jpg">

						</a>

							<div class="modal fade" id="<?= $video->id; ?>" tabindex="-1"
								role="dialog" aria-labelledby="videoModal" aria-hidden="true">
								<div class="modal-dialog">
									<div class="modal-content">
										<div class="modal-header">
											<button type="button" class="close" data-dismiss="modal"
												aria-hidden="true">&times;</button>

											<?= $video->title; ?>
										</div>
										<div class="modal-body">
											<iframe width="100%" height="350"
												src="//www.youtube.com/embed/<?= $video->value; ?>"></iframe>
										</div>
									</div>
								</div>
							</div> <!-- /.modal -->
						</li>
						<?php endforeach;
} else {
	?>

						<li>
							<div class="alert alert-warning">Oops! No data found...</div>
						</li>
						<?php } ?>
					</ul>


				</div>
			</div>

			<hr class="hr-normal">
			<div>
				<div class="row">

					<ul>
						<?php if ($photos) { ?>
						<?php foreach ($photos as $photos): ?>
						<li class="col-md-4"><a id="mediaVideo" href="#"
							data-toggle="modal" data-target="<?= '#' . $photos->id; ?>"> <img
								src="<?= URL::base(); ?>/storage/uploads/photos/<?= $photos->value; ?>">
						</a>

							<div class="modal fade" id="<?= $photos->id; ?>" tabindex="-1"
								role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">


								<div class="modal-dialog">
									<div class="modal-content">

										<div class="modal-header">
											<?= $photos->title; ?>
											<button type="button" class="close" data-dismiss="modal"
												aria-hidden="true">X</button>

										</div>


										<div class="modal-body">

											<img class="img-responsive"
												src="<?= URL::base(); ?>/storage/uploads/images/<?= $photos->value; ?>"
												alt="">
										</div>

									</div>
									<!-- /.modal-content -->
								</div>
								<!-- /.modal-dialog -->

							</div> <!-- /.modal --></li>
						<?php endforeach;
	} else {
		?>
						<li>
							<div class="alert alert-warning">Opps! No data found...</div>
						</li>
						<?php } ?>

					</ul>
				</div>
			</div>
		</div>

		<h2 class="resp-accordion" role="tab" aria-controls="tab_item-3">
			<span class="resp-arrow"></span>Send Enquiry
		</h2>

		<div class="resp-tab-content" aria-labelledby="tab_item-3">
			<div class="row">
				<form id="post_enquiry" method="post"
					action="<?= URL::base();?>/site/profile/enquiry"
					accept-charset="<?= Settings::get('en','charset');?>">
					<h2>
						Send Enquiry to
						<?= $post->title;?>
					</h2>

					<input type="hidden" id="post_id" name="post_id"
						value="<?= $post->id;?>">
					<div class="mute">
						<span class="text text-danger">( * ) Marks fields are Mandatory</span>
					</div>
					<div class="row1">
						<span class="pull-right" id="enquiry_message"></span>
					</div>
					<div class="row1" hidden="hidden">
						<div class="col-md-6">
							<label>Current Url
							</label> <input type="text" placeholder="Type something…"
								class="field" name="listing_url" id="listing_url" value="<?= URL::current();?>" >
						</div>
						
					</div>
					<div class="row1" hidden="hidden">
						<div class="col-md-6">
							<label>Owner email
							</label> <input type="text" placeholder="Type something…"
								class="field" name="owner_email" id="owner_email" value="<?= $post->email;?>" >
						</div>
						
					</div>
					<div class="row1">
						<div class="col-md-6">
							<label>Full Name <span class="text text-danger">*</span>
							</label> <input type="text" placeholder="Type something…"
								class="field" name="enquiry_name" id="enquiry_name">
						</div>
						<div class="col-md-6">
							<label>Email <span class="text text-danger">*</span>
							</label> <input type="text" placeholder="Type something…"
								class="field" name="enquiry_email" id="enquiry_email">
						</div>

					</div>

					<div class="row1">
						<div class="col-md-6">
							<label>Enter Location </label> <input type="hidden"
								name="selectbox-mylocation1" id="selectbox-mylocation1"
								class="field f-right ui-autocomplete-input select2"
								data-placeholder="Enter Your Location" />

						</div>
						<div class="col-md-6">
							<label>Contact No <span class="text text-danger">*</span>
							</label> <input type="text" placeholder="Type something…"
								class="field" name="enquiry_contact" id="enquiry_contact">
						</div>

					</div>

					<div class="row1">
						<div class="col-md-12">
							<label>Description <span class="text text-danger">*</span> <span
								class="mute">( Minimum 25 character ) </span>
							</label>
							<textarea class="form-control field" rows="5"
								name="enquiry_description" id="enquiry_description"></textarea>
						</div>
					</div>
					<div class="row1">
						<input type="submit" value="Send Enquiry" class="btn btn-info"
							id="post_enq">
					</div>
					<!-- 
                 <div class="row1">
                        <span class="text-danger" id="enquiry_message"></span>
                     
                    </div>
                     -->
				</form>
			</div>
		</div>
	</div>
	<div></div>
</div>

<?php if(Settings::get('en','publisher_id')){?>
<div class="widget">
	<div class="adspace end">
		<script async
			src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
		<!-- RESPONSIVE2 -->
		<ins class="adsbygoogle" style="display: block"
			data-ad-client="<?php echo Settings::get('en','publisher_id');?>"
			data-ad-format="auto"></ins>
		<script>
				(adsbygoogle = window.adsbygoogle || []).push({});
				</script>
	</div>
</div>

<?php }?>

<div class="respotbs twoColTab"
	style="display: block; width: 100%; margin: 0px;">
	<ul class="resp-tabs-list">
		<?php if(Comments::getModule('review')){?>

		<?= HMVC::get('Comments::index@review_tab',array($post->id)); ?>
		<li class="resp-tab-item" aria-controls="tab_item-2" role="tab">Report
			Incorrect</li>
		<?php }?>

		<?php if(!Comments::getModule('review')){?>
		<li class="resp-tab-item resp-tab-active" aria-controls="tab_item-2"
			role="tab">Report Incorrect</li>
		<?php }?>
	</ul>
	<div class="resp-tabs-container">
		<?php if(Comments::getModule('review')){?>
		<?= HMVC::get('Comments::index@review',array($post->id)); ?>
		<h2 class="resp-accordion" role="tab" aria-controls="tab_item-2">
			<span class="resp-arrow"></span>Report Incorrect
		</h2>

		<div class="resp-tab-content" aria-labelledby="tab_item-2">
			<?php }?>
			<?php if(!Comments::getModule('review')){?>
			<h2 class="resp-accordion resp-tab-active" role="tab"
				aria-controls="tab_item-2">
				<span class="resp-arrow"></span>Report Incorrect
			</h2>

			<div class="resp-tab-content resp-tab-content-active"
				aria-labelledby="tab_item-2">
				<?php }?>
				<div class="row">

					<form id="post_incorrect" method="post"
						action="<?= URL::base();?>/site/profile/inc"
						accept-charset="<?= Settings::get('en','charset');?>">
						<h2>Report Incorrect</h2>

						<input type="hidden" name="post_id" id="post_id"
							value="<?= $post->id;?>">
						<p>If you found wrong information, please provide the correct one,
							so that other people get the benefits...</p>

						<div class="mute">
							<span class="text-danger">( * ) Marks fields are Mandatory</span>
						</div>
						<div class="row1">
							<span class="pull-right" id="report_message"></span>

						</div>
						<div class="row1" hidden="hidden">
						<div class="col-md-6">
							<label>Current Url
							</label> <input type="text" placeholder="Type something…"
								class="field" name="listing_url1" id="listing_url1" value="<?= URL::current();?>" >
						</div>
						
					</div>
					
						<div class="row1">
							<div class="col-md-6">
								<label>Full Name <span class="text text-danger">*</span>
								</label> <input type="text" placeholder="Type something…"
									class="field" name="report_name" id="report_name">
							</div>
							<div class="col-md-6">
								<label>Email <span class="text text-danger">*</span>
								</label> <input type="text" placeholder="Type something…"
									class="field" name="report_email" id="report_email">
							</div>

						</div>


						<div class="row1">
							<div class="col-md-6">
								<label>Contact No <span class="text text-danger">*</span>
								</label> <input type="text" placeholder="Type something…"
									class="field" name="report_contact" id="report_contact">
							</div>
							<div class="col-md-6">
								<label>Enter Location </label> <input type="hidden"
									name="selectbox-mylocation3" id="selectbox-mylocation3"
									class="field f-right ui-autocomplete-input select2"
									data-placeholder="Enter Your Location" />
							</div>


						</div>
						<div class="row1">
							<div class="col-md-6">
								<label>Report Type <span class="text text-danger">*</span>
								</label> <select class="field" name="report_type"
									id="report_type">
									<?php foreach($report as $report):?>
									<option value="<?= $report['id'];?>">
										<?= $report['name'];?>
									</option>
									<?php endforeach;?>
								</select>
							</div>
						</div>
						<div class="row1">
							<div class="col-md-12">
								<label>Description <span class="text text-danger">*</span> <span
									class="mute">( Minimum 25 character ) </span>
								</label>
								<textarea class="form-control field" rows="5"
									name="report_description" id="report_description"></textarea>
							</div>
						</div>
						<div class="row1">
							<input type="submit" value="Send Report" class="btn btn-info"
								id="post_report">
						</div>
						<!-- 
                    <div class="row1">
                        <span class="text-danger" id="report_message"></span>
                       
                    </div>-->
					</form>

				</div>
			</div>
		</div>


		<div></div>
	</div>

	
	
	<style>
    .claimModal {
        /* new custom width */
        _width: 750px;
		margin-left: auto;
   		 margin-right: auto;
    }
</style>
	<!-- Modal -->
<div class="modal  claimModal" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">
	
		<div class="modal-dialog modal-sm">
        <div class="modal-content ">
				<div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span class="sr-only">Close</span>x</button>
               <h4 class="modal-title" id="claimModalLabel">
						Claim Report on
						<?= $post->title;?>
					</h4>
            </div>
				<div class="modal-body">
					<div class="row">
                   
						<form id="post_claim" method="post"
							action="<?= URL::base();?>/site/profile/claim"
							accept-charset="<?= Settings::get('en','charset');?>">
							<h2>Claim Report</h2>

							<input type="hidden" name="post_id" id="post_id"
								value="<?= $post->id;?>">
							<div class="mute">
								<small class="text text-danger">( * ) Marks fields are Mandatory</small>
							</div>

							<span class="pull-right" id="claim_message"></span>

							<div class="row1" hidden="hidden">
						<div class="col-md-6">
							<label>Current Url
							</label> <input type="text" placeholder="Type something…"
								class="field" name="listing_url2" id="listing_url2" value="<?= URL::current();?>" >
						</div>
						
					</div>
							<div class="row1">
								<div class="col-md-6">
									<label>Full Name <span class="text text-danger">*</span>
									</label> <input type="text" placeholder="Type something…"
										class="field" name="claim_name" id="claim_name">
								</div>
								<div class="col-md-6">
									<label>Email <span class="text text-danger">*</span>
									</label> <input type="text" placeholder="Type something…"
										class="field" name="claim_email" id="claim_email">
								</div>

							</div>

							<div class="row1">
								<div class="col-md-6">
									<label>Enter Location </label> <input type="hidden"
										name="selectbox-mylocation4" id="selectbox-mylocation4"
										class="field f-right ui-autocomplete-input select2"
										data-placeholder="Enter Location" />

									<!--   <input type="text" placeholder="Type Location…"
                                            class="field" name="claim_location" id="claim_location">-->
								</div>
								<div class="col-md-6">
									<label>Contact No <span class="text text-danger">*</span>
									</label> <input type="text" placeholder="Type something…"
										class="field" name="claim_contact" id="claim_contact">
								</div>

							</div>

							<div class="row1">
								<div class="col-md-6">
									<label>Position At <span class="text text-danger">*</span>
									</label> <input type="text" placeholder="Type something…"
										class="field" name="claim_position_at" id="claim_position_at">
								</div>
							</div>
							<div class="row1">
								<div class="col-md-12">
									<label>Description <span class="text text-danger">*</span> <span
										class="mute">( Minimum 25 character ) </span>
									</label>
									<textarea class="form-control field" rows="5"
										name="claim_description" id="claim_description"></textarea>
								</div>
							</div>



							<div class="modal-footer pull-left">
								<button type="button" class="btn btn-default"
									data-dismiss="modal">Close</button>
								<button type="submit" class="btn btn-primary" id="post_clm">Save
									changes</button>
							</div>


						</form>
						
					</div>
				</div>


			</div>
		</div>
	</div>
	<!-- END OF PROFILE -->